import { observable, computed, action, autorun, runInAction, makeObservable ,toJS} from 'mobx';
class Store {
    @observable data = [
        {
            createdAt: "2021-02-01",
            id: "326",
            jump_url: "https://mp.weixin.qq.com/s/Ri1GOwMUAR35auMrVBzdCQ",
            main_title: "农业专家热议优质蔬菜产业发展 拼多多“线上菜篮子”补位现代农业流通体系",
            rank: 1,
            source: "中国经济网",
            sourceDate: "2020-11-23",
            status: 1,
            updatedAt: "2021-02-01"
        }
    ]
    constructor() {
        makeObservable(this)
    }
    @action setDatas = (text) => {
    this.data = text
    // this.data= toJS(this.data)`
    }
    @action setData = (index, text) => {
        this.data[index].source = text
    }
}
export default Store